/*     */ package com.cr.quartz.domain;
/*     */ 
/*     */ import com.cr.common.annotation.Excel;
/*     */ import com.cr.common.core.domain.BaseEntity;
/*     */ import com.cr.common.utils.MyStringUtils;
/*     */ import com.cr.quartz.util.CronUtils;
/*     */ import java.io.Serializable;
/*     */ import java.util.Date;
/*     */ import javax.validation.constraints.NotBlank;
/*     */ import javax.validation.constraints.Size;
/*     */ import org.apache.commons.lang3.builder.ToStringBuilder;
/*     */ import org.apache.commons.lang3.builder.ToStringStyle;
/*     */ 
/*     */ public class SysJob extends BaseEntity implements Serializable {
/*     */   private static final long serialVersionUID = 1L;
/*     */   
/*     */   @Excel(name = "任务序号", cellType = Excel.ColumnType.NUMERIC)
/*     */   private Long jobId;
/*     */   
/*     */   @Excel(name = "任务名称")
/*     */   private String jobName;
/*     */   
/*     */   @Excel(name = "任务组名")
/*     */   private String jobGroup;
/*     */   
/*     */   @Excel(name = "调用目标字符串")
/*     */   private String invokeTarget;
/*     */   
/*     */   @Excel(name = "执行表达式 ")
/*     */   private String cronExpression;
/*     */   
/*     */   @Excel(name = "计划策略 ", readConverterExp = "0=默认,1=立即触发执行,2=触发一次执行,3=不触发立即执行")
/*  45 */   private String misfirePolicy = "0";
/*     */   
/*     */   @Excel(name = "并发执行", readConverterExp = "0=允许,1=禁止")
/*     */   private String concurrent;
/*     */   
/*     */   @Excel(name = "任务状态", readConverterExp = "0=正常,1=暂停")
/*     */   private String status;
/*     */   
/*     */   public Long getJobId() {
/*  58 */     return this.jobId;
/*     */   }
/*     */   
/*     */   public void setJobId(Long jobId) {
/*  63 */     this.jobId = jobId;
/*     */   }
/*     */   
/*     */   @NotBlank(message = "任务名称不能为空")
/*     */   @Size(min = 0, max = 64, message = "任务名称不能超过64个字符")
/*     */   public String getJobName() {
/*  70 */     return this.jobName;
/*     */   }
/*     */   
/*     */   public void setJobName(String jobName) {
/*  75 */     this.jobName = jobName;
/*     */   }
/*     */   
/*     */   public String getJobGroup() {
/*  80 */     return this.jobGroup;
/*     */   }
/*     */   
/*     */   public void setJobGroup(String jobGroup) {
/*  85 */     this.jobGroup = jobGroup;
/*     */   }
/*     */   
/*     */   @NotBlank(message = "调用目标字符串不能为空")
/*     */   @Size(min = 0, max = 1000, message = "调用目标字符串长度不能超过500个字符")
/*     */   public String getInvokeTarget() {
/*  92 */     return this.invokeTarget;
/*     */   }
/*     */   
/*     */   public void setInvokeTarget(String invokeTarget) {
/*  97 */     this.invokeTarget = invokeTarget;
/*     */   }
/*     */   
/*     */   @NotBlank(message = "Cron执行表达式不能为空")
/*     */   @Size(min = 0, max = 255, message = "Cron执行表达式不能超过255个字符")
/*     */   public String getCronExpression() {
/* 104 */     return this.cronExpression;
/*     */   }
/*     */   
/*     */   public void setCronExpression(String cronExpression) {
/* 109 */     this.cronExpression = cronExpression;
/*     */   }
/*     */   
/*     */   public Date getNextValidTime() {
/* 114 */     if (MyStringUtils.isNotEmpty(this.cronExpression))
/* 116 */       return CronUtils.getNextExecution(this.cronExpression); 
/* 118 */     return null;
/*     */   }
/*     */   
/*     */   public String getMisfirePolicy() {
/* 123 */     return this.misfirePolicy;
/*     */   }
/*     */   
/*     */   public void setMisfirePolicy(String misfirePolicy) {
/* 128 */     this.misfirePolicy = misfirePolicy;
/*     */   }
/*     */   
/*     */   public String getConcurrent() {
/* 133 */     return this.concurrent;
/*     */   }
/*     */   
/*     */   public void setConcurrent(String concurrent) {
/* 138 */     this.concurrent = concurrent;
/*     */   }
/*     */   
/*     */   public String getStatus() {
/* 143 */     return this.status;
/*     */   }
/*     */   
/*     */   public void setStatus(String status) {
/* 148 */     this.status = status;
/*     */   }
/*     */   
/*     */   public String toString() {
/* 153 */     return (new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE))
/* 154 */       .append("jobId", getJobId())
/* 155 */       .append("jobName", getJobName())
/* 156 */       .append("jobGroup", getJobGroup())
/* 157 */       .append("cronExpression", getCronExpression())
/* 158 */       .append("nextValidTime", getNextValidTime())
/* 159 */       .append("misfirePolicy", getMisfirePolicy())
/* 160 */       .append("concurrent", getConcurrent())
/* 161 */       .append("status", getStatus())
/* 162 */       .append("createBy", getCreateBy())
/* 163 */       .append("createTime", getCreateTime())
/* 164 */       .append("updateBy", getUpdateBy())
/* 165 */       .append("updateTime", getUpdateTime())
/* 166 */       .append("remark", getRemark())
/* 167 */       .toString();
/*     */   }
/*     */ }


/* Location:              D:\tmp\creditorRights-admin\BOOT-INF\lib\creditorRights-quartz-4.7.0.jar!\com\cr\quartz\domain\SysJob.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */